home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / e2_v321.zip / E_REF < prev    next >
Text File  |  1991-03-29  |  17KB  |  646 lines

  1.               USING THE RAND EDITOR E
  2.  
  3.                   Mike O'Carroll
  4.  
  5.                              Microsystems Unit
  6.                             University of Leeds
  7.  
  8.  
  9.  
  10. 1.  INTRODUCTION
  11.  
  12. This quick-reference manual assumes that you are familiar  with  the  basic
  13. operation  of  ned,  an  earlier version of e.  If not, well, it's not that
  14. difficult, anyway.
  15.  
  16. The editor may be used on any Lear Siegler type terminal (adm3a,  adm5)  or
  17. equivalent.  An  IBM PC running uc has its keyboard programmed on start up;
  18. the equivalent keys are indicated in column 3 below.
  19.  
  20. 2.  NOTATION
  21.  
  22. The sequence ^X means control-X, <NAME> means the key called NAME and N  is
  23. an  integer.   (CV),  (CH) and (CVH) mean vertical, horizontal and diagonal
  24. cursor move sequences respectively.  <CMD> will normally  be  the  <ESCAPE>
  25. key.
  26.  
  27. The term close means that text is deleted and the space is closed up, while
  28. erase  means  that  the deletion is replaced by white space.  References to
  29. this file or current file mean the file which is in the active window indi-
  30. cated by solid borders.
  31.  
  32. 3.  CURSOR MOVEMENT
  33.  
  34.     cursor down                       @south@
  35.     cursor up                         @north@
  36.     cursor right                      @east@
  37.     cursor left                       @west@
  38.     cursor to top LH corner (home)    <HOME>          <Home>
  39.     cursor to bottom LH corner (end)  <CMD><HOME>     <End>
  40.     cursor to last line               <CMD>@south@
  41.     cursor to first line              <CMD>@north@
  42.     cursor to end of line             <CMD>@east@
  43.     cursor to beginning of line       <CMD>@west@
  44.     tab right                         <TAB>           @east@|
  45.     tab left                          ^]              |@west@
  46.  
  47.  
  48. 4.  ENDING THE EDIT
  49.  
  50.     exit and save all touched files   ^Z
  51.     abort but save keystrokes         ^E^Z
  52.  
  53. Other methods of exiting are described under the EXIT heading.
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.                                    - 2 -
  68.  
  69.  
  70. 5.  WINDOW MOVEMENT
  71.  
  72.     down one page                     ^V              <PgDn>
  73.     up one page                       ^G              <PgUp>
  74.     down 10 lines                     ^D
  75.     up 10 lines                       ^U
  76.     down N pages                      <CMD>N^V
  77.     up N pages                        <CMD>N^G
  78.     down N lines                      <CMD>N^D
  79.     up N lines                        <CMD>N^U
  80.     down, put current line at top     <CMD>^D
  81.     up, put current line at bottom    <CMD>^U
  82.     down to end of file               <CMD>^V
  83.     up to top of file                 <CMD>^G
  84.     right 16 columns                  ^R
  85.     left 16 columns                   ^X
  86.     right N columns                   <CMD>N^R
  87.     left N columns                    <CMD>N^X
  88.     right, put current column at left <CMD>^R
  89.     left, put current column at right <CMD>^X
  90.     mark first cursor position        ^B              <F3>
  91.     mark second position, goto first  ^B
  92.     remove marks                      <CMD>^B         <F6>
  93.  
  94. Note that any attempt to move the cursor beyond a window  edge  will  cause
  95. the  window  to shift in the appropriate direction.  WARNING: marks delimit
  96. the active area for block edit functions (qv).
  97.  
  98. 6.  CHARACTER EDITING
  99.  
  100.     toggle insert/overwrite mode      ^O              <Ins>
  101.     erase/close character to left     <RUB>
  102.     close character to right          ^N              <Del>
  103.     erase all chars to right          <CMD>^N
  104.     erase/close all chars to left     <CMD><RUB>
  105.  
  106. In insert mode, <RUB> closes, otherwise it erases.
  107.  
  108. 7.  LINE EDITING
  109.  
  110.     insert blank line above current   ^_              <F1>
  111.     delete current line               ^Y              <F2>
  112.     erase current line                ^E^Y            <Ctrl-F2>
  113.     split current line at cursor      ^E^             <Alt-F1>
  114.     join next line to current         ^E@south@       <Alt-F2>
  115.  
  116. See also the block editing functions.
  117.  
  118. 8.  STRING SEARCHES
  119.  
  120.     search down for string            <CMD>string^F
  121.     search up for string              <CMD>string^T
  122.     search down for word at cursor    <CMD>^F
  123.     search up for word at cursor      <CMD>^T
  124.     repeat search down/up             ^F/^T           <F9>/<F10>
  125.     do current replacement (qv)       ^E^E
  126.     do current, search for next       ^E^F            <Alt-F9>
  127.     do current, search for previous   ^E^T            <Alt-F10>
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.                                    - 3 -
  140.  
  141.  
  142. 9.  BLOCK EDITING
  143.  
  144. Block moves are achieved using the close, erase and pick  buffers;  use  of
  145. the last allows copying of text.
  146.  
  147.     insert a blank line               ^_              <F1>
  148.     insert N blank lines              <CMD>N^_
  149.     insert several blank lines        ^B(CV)^_
  150.     insert a blank block              ^B(CVH)^_
  151.     pick up current line              ^A              <F4>
  152.     pick up N lines                   <CMD>N^A
  153.     pick up several lines             ^B(CV)^A
  154.     pick up several columns           ^B(CH)^A
  155.     pick up a rectangular block       ^B(CVH)^A
  156.     put down last picked block        <CMD>^A         <F5>
  157.     close current line                ^Y              <F2>
  158.     close N lines                     <CMD>N^Y
  159.     close several lines               ^B(CV)^Y
  160.     close several columns             ^B(CH)^Y
  161.     close a rectangular block         ^B(CVH)^Y
  162.     put down last closed block        <CMD>^Y         <F7>
  163.     erase current line                ^E^Y            <Ctrl-F2>
  164.     erase N lines                     <CMD>N^E^Y
  165.     erase several lines               ^B(CV)^E^Y
  166.     erase several columns             ^B(CH)^E^Y
  167.     erase a rectangular block         ^B(CVH)^E^Y
  168.     put down last erased block        <CMD>^E^Y       <Ctrl-F7>
  169.     close next word                   ^E^N
  170.     put down last closed word         <CMD>^E^N
  171.  
  172.  
  173. 10.  MISCELLANEOUS
  174.  
  175.     set a tab stop at cursor          ^@at@              use TAB
  176.     remove the tab stop at cursor     <CMD>^@at@         command
  177.     remove all tabs                   ^E^@at@            below
  178.     redraw a clean screen             ^E<HOME>        <Ctrl-Home>
  179.     interrupt search or replace (qv)  ^C
  180.     switch to next window (qv)        ^W              <Alt-F8>
  181.         put alternate file (qv) in
  182.         current window                ^E^W            <F8>
  183.     recall previous command string    ^E^A            <Alt-F5>
  184.  
  185.  
  186.  
  187. 11.  INTERNAL COMMANDS
  188.  
  189. These are built-in commands which require  a  combination  of  control  and
  190. printing  characters;  they  are  always given on the command line. Some of
  191. them duplicate functions described above.
  192.  
  193. 11.1.  BOX
  194.  
  195.     draw a box                        ^B(CVH)<CMD>box<CR>
  196.  
  197. If (CVH) is (CH) only, a horizontal line will be drawn.  To draw a vertical
  198. line, make (CVH) such that (CH) moves one column only.
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.                                    - 4 -
  212.  
  213.  
  214. 11.2.  CENTRE
  215.  
  216.     centre current line               <CMD>cen<CR>
  217.     centre N lines                    <CMD>N cen<CR>
  218.     centre several lines              ^B(CV)<CMD>cen<CR>
  219.     insert original text              <CMD>ins a<CR>
  220.  
  221. The width (default 74) for centering, filling and justifying may be changed
  222. using SET.
  223.  
  224. 11.3.  CLOSE
  225.  
  226.     close current line                <CMD>clo<CR>
  227.     close N lines                     <CMD>clo N<CR>
  228.     close a block                     ^B(CVH)<CMD>clo<CR>
  229.     restore last closure              <CMD>-clo<CR>
  230.  
  231.  
  232. 11.4.  COMMAND MODE
  233.  
  234.     enter command mode                <CMD>com<CR>
  235.     leave command mode                <CMD>-com<CR>
  236.  
  237.  
  238. 11.5.  COVER
  239.  
  240. Normally, when text blocks are put down, existing material is  pushed  down
  241. (for  vertical  blocks) or sideways (for horizontal or rectangular blocks).
  242. This command causes the dropped text to overwrite what is there.
  243.  
  244.     cover with pick buffer            <CMD>cov p<CR>
  245.     cover with close buffer           <CMD>cov c<CR>
  246.     cover with erase buffer           <CMD>cov e<CR>
  247.  
  248.  
  249. 11.6.  DELETE
  250.  
  251.     delete current file (permanently) <CMD>del<CR>
  252.  
  253.  
  254. 11.7.  EDIT
  255.  
  256.     edit another file in this window  <CMD>e altfile<CR>
  257.     switch to alternate file (if any) <CMD>e<CR>
  258.  
  259.  
  260. 11.8.  ERASE
  261.  
  262.     erase current line                <CMD>era<CR>
  263.     erase N lines                     <CMD>era N<CR>
  264.     erase a block                     ^B(CVH)<CMD>era<CR>
  265.     put back last erasure             <CMD>-era<CR>
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.